
package com.netease.xone.widget.msgbubble;

import android.graphics.Canvas;

public interface Renderable {

    /**
     * 刷新频率
     * 
     * @return
     */
    public int getFrameHz();

    /**
     * 一帧中的绘制操作
     * 
     * @param c
     */
    public void doDraw(Canvas c);

    /**
     * 一帧中的逻辑操作
     */
    public void updateState();

    public void onSurfaceChanged(int width, int height);

    public void onSurfaceCreated(int width, int height);
}
